#pragma once

#include "LPCSTRArray.h"

// CHTMLStatic

class CHTMLStatic : public CStatic
{
	DECLARE_DYNAMIC(CHTMLStatic)

public:
	CHTMLStatic(bool autoDel = true);
	~CHTMLStatic() override;

	void ResetContent();
	void AddString(LPCWSTR s);
	void DeleteString(intptr_t idx);
	intptr_t InsertString(intptr_t idx, LPCWSTR s);
	intptr_t GetCount() { return ary.count; }
	intptr_t GetLines();
protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnPaint();
protected:
	intptr_t DrawContent(CDC *pDC, const CRect &r, bool calcOnly);
	
	CLPCWSTRArray ary;
	long m_Lines;
	bool m_AutoDel, m_needCheckLine;
};

